package com.kevin.hw;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: kevin
 * @date: 2017/8/18
 * @description:
 */
public class ConsumerTest {

    public static void main(String[] args) {


        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"classpath:consumer.xml"});

        context.start();

        IOrderService orderService = (IOrderService) context.getBean("orderService");

        String id = orderService.doOrder("aaa");
        System.out.println("id ====" +id);
    }

}
